package pro.reznick.geoalarm;

public class AlarmData {

	
	private double longitude;
	private double latitude;
	private int distanceInMeters;
	private String name;
	private String text;
	private boolean on;
	
	private int id;

	public AlarmData(double longitude, double latitude, int distanceInMeters,
			String alarmName, String alarmText, boolean isOn) {
		this.id = -1;
		this.longitude = longitude;
		this.latitude = latitude;
		this.distanceInMeters = distanceInMeters;
		this.name = alarmName;
		this.text = alarmText;
		this.on = isOn;
	}
	
	public AlarmData(int id, double longitude, double latitude, int distanceInMeters,
			String alarmName, String alarmText, boolean isOn) {
		this.id = id;
		this.longitude = longitude;
		this.latitude = latitude;
		this.distanceInMeters = distanceInMeters;
		this.name = alarmName;
		this.text = alarmText;
		this.on = isOn;
	}

	public double getLongitude() {
		return longitude;
	}

	public double getLatitude() {
		return latitude;
	}

	public int getDistanceInMeters() {
		return distanceInMeters;
	}

	public String getName() {
		return name;
	}

	public String getText() {
		return text;
	}
	
	public boolean isOn(){
		return this.on;
	}
	
	public int getId()
	{
		return id;
	}
	
	public void setId(int alarmId){
		this.id = alarmId;
	}
	
}
